import unittest
from page.Page_login import Page_login
from page.Page_loginnone import Page_loginNone
from page.Page_loginwar import Page_loginWar
from page.page_add import Page_add
from page.page_addnone import Page_add
from page.page_addlittle import Page_add
from page.page_buy import Page_buy
from page.page_buynone import Page_buy
from page.page_buywar import Page_buy
from selenium import webdriver
import time

class TestCase(unittest.TestCase):
    def setUp(self):
        self.driver=webdriver.Chrome()
        self.driver.maximize_window()

    def tearDown(self):
        time.sleep(10)
        self.driver.quit()

    def test_01_login(self):
        po=Page_login(self.driver)
        po.login_right()

    def test_02_loginnone(self):
        po=Page_loginNone(self.driver)
        po.login_right()

    def test_03_loginwar(self):
        po=Page_loginWar(self.driver)
        po.login_right()

    def test_04_add(self):
        po=Page_add(self.driver)
        po.add_right()
    def test_05_addnone(self):
        po=Page_add(self.driver)
        po.add_right()
    def test_06_addlittle(self):
        po=Page_add(self.driver)
        po.add_right()
    def test_07_buy(self):
        po=Page_buy(self.driver)
        po.buy_right()
    def test_08_buynone(self):
        po = Page_buy(self.driver)
        po.buy_right()
    def test_09_buywar(self):
        po = Page_buy(self.driver)
        po.buy_right()



